<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
</head>
<body>
<script>
/*var obj = new Object;
var json = {"name":"weilaoshi","sex":"man"};
alert(json.length);
for(var attr in json){
	alert("属性名："+attr+"，属性值："+json[attr]);
}*/

/*var arr=[{"name":"abc","age":20}, {"name":"bcd",age:30}]
for(var i=0;i<arr.length;i++){
	for(var attr in arr[i]){
		alert("属性名："+attr+"，属性值："+arr[i][attr]);
	}
}*/

/*var json = {"aaa":[1,2,3,4],"bbb":[3,4,5]};
for(var attr in json){
	for(var i=0;i<json[attr].length;i++){
		console.log(json[attr][i]);
	}
}*/
//console.log(100);

/*var arr = [0,9,8,7];
for(var attr in arr){
	alert(arr[attr]);
}*/

for(var attr in window){
	console.log("属性名："+attr+"，属性值："+window[attr]);
}
</script>
</body>
</html>
